<template>
  <div class="page">
    <van-nav-bar
    fixed
    z-index="3"
    title="事项详情"
    left-text="返回"
    left-arrow
    @click-left="routerBack"
  />
    <van-tabs v-model="activeTab" color="#4B93FE">
      <van-tab title="办理过程" :name="0" />
      <van-tab title="我要帮扶" :name="1" />
      <van-tab v-if="isIntervene == 1" title="中介事项" :name="2" />
    </van-tabs>
    <div v-if="activeTab === 0">
      <ProjectNodeProcess />
    </div>
    <div v-if="activeTab === 1" class="">
      <ProjectNodeCall />
    </div>
  </div>
</template>

<script>
import ProjectNodeCall from './project-node-call'
import ProjectNodeProcess from './project-node-process'
export default {
  name: 'ProjectDetail',
  components: {
    ProjectNodeCall,
    ProjectNodeProcess
  },
  data() {
    return {
      activeTab: 0,
      activeTab2: 1,
      isIntervene: 0
    }
  },
  created() {
    this.isIntervene = this.$route.query.isIntervene
  },
  methods: {
    routerBack() {
      localStorage.setItem('type', 2)
      this.$router.back(-1)
    }
  }
}
</script>

<style scoped lang="scss">
.page {
    .button-list {
        padding: 20px 20px 0 20px;
        .button-item {
            margin-right: 13px;
            width: 60px;
            height: 26px;
            border: 1px solid #2F86FD;
            border-radius: 12px;
            line-height: 24px;
            font-size: 12px;
            font-family: PingFang SC;
            font-weight: 500;
            color: #2F86FD;
            text-align: center;
        }
        .button-item.active {
            background: #2F86FD;
            color: #fff
        }
    }

    .list-item {
        width: 100%;
        background: #FFFFFF;
        border-radius: 10px;
        padding: 20px;
        .header {
            .title {
                height: 17px;
                font-size: 18px;
                font-family: PingFang SC;
                font-weight: 500;
                color: #333333;
                margin-right: 10px;
            }
            margin-bottom: 23px;
        }
        .label {
            font-size: 15px;
            line-height: 15px;
            height: 15px;
            color: #333333;
            margin-bottom: 15px;
            &:last-of-type {
                margin-bottom: 0;
            }
        }
    }
    .record-list {
        background: #FFFFFF;
        border-radius: 10px;
        padding: 20px;
        .title {
            font-size: 16px;
            font-family: PingFang SC;
            font-weight: bold;
            color: #333333;
            margin-bottom: 20px;
        }
        .record-item {
            margin-bottom: 20px;
            border: 1px solid #2B80FF;
            padding: 7px 12px 13px;
            border-radius: 10px;
            overflow: hidden;
            background-color: #fff;
            position: relative;
            .link {
                height: 12px;
                font-size: 12px;
                font-family: PingFang SC;
                font-weight: 500;
                color: #2F86FD;
            }
            .label {
                height: 12px;
                font-size: 12px;
                color: #333333;
                margin-bottom: 15px;
                &:last-of-type {
                    margin-bottom: 0;
                }
            }

            .button1 {
                color: #2B80FF;
                width: 59px;
                height: 24px;
                background: #D8E8FF;
                border: 1px solid #2F86FD;
                border-radius: 10px;
                text-align: center;
                font-size: 12px;
                line-height: 22px;
                margin-bottom: 15px;
            }
            .status {
                width: 50px;
                height: 21px;
                line-height: 21px;
                font-size: 12px;
                color: #fff;
                border-radius: 0px 10px 0px 0px;
                position: absolute;
                right: -1px;
                top: 0;
                text-align:center;
            }
            .status1 {
                background: #4B93FE;
            }
            .status2 {
                background: #20B153;
            }
        }
    }
    .el-button {
        background-color: #2F86FD;
        border-color: #2F86FD;
        border-radius: 10px;
    }
}
</style>
